Skip to content

Conversation

@nikitalita
Copy link
Contributor

@nikitalita nikitalita commented Dec 26, 2025

When using the dummy rendering server, ImporterMesh::add_surface() fails if the mesh has blend shapes:

ERROR: Condition "blend_shape_count != (uint32_t)mesh_get_blend_shape_count(p_mesh)" is true. Returning: Array()
	at: mesh_surface_get_blend_shape_arrays (servers/rendering_server.cpp:1774)
ERROR: Condition "p_blend_shapes.size() != blend_shapes.size()" is true.
	at: add_surface (scene/resources/3d/importer_mesh.cpp:68)

This causes various things, like the scene importers, to produce inaccurate scenes when running headless.

This is caused by the dummy mesh storage not actually setting and getting the blend_shape_count/blend_shape_mode. Implementing those fixes the issue.

@nikitalita nikitalita requested a review from a team as a code owner December 26, 2025 21:02
@fire fire requested a review from a team December 27, 2025 18:39
@fire
Copy link
Member

fire commented Dec 27, 2025

Probably want rendering to take a look too.

@Chaosus Chaosus added this to the 4.6 milestone Dec 28, 2025
@akien-mga akien-mga added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 1, 2026
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@akien-mga akien-mga merged commit 23b7415 into godotengine:master Jan 6, 2026
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants